package cn.iocoder.yudao.module.trade.cart.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "用户 App - 购物车重置 Request VO")
@Data
public class AppCartResetReqVO {

    @Schema(description = "购物车编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "购物车编号不能为空")
    private Long id;

    @Schema(description = "产品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED,example = "1024")
    @NotNull(message = "产品 SKU 编号不能为空")
    private Long skuId;

    @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "数量不能为空")
    @Min(message = "数量必须大于 0", value = 1L)
    private Integer count;

}
